package com.yilin.tms.message.repository;

import com.yilin.tms.core.entity.message.MessageData;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

/**
 * 聊天记录mongoDB
 *
 * @author zhangjinyuan
 * @date 2022/10/28
 */
@Component
public interface MessageDataRepository extends MongoRepository<MessageData,String> {

    List<MessageData> findBySendTimeBetween(Date startDate, Date endDate);
}
